export const tableComponentConfig = {};
// 主表 列
export const tableRenderKeys = [
  'index',
  'secretLevel',
  'materialCode',
  'materialName',
  'categoryLv1',
  'categoryLv2',
  'categoryLv3',
  'materialStatusName',
  'optional',
];
// 按物料添加列
export const tableRenderKeysMaterialNameAdd = [
  'index',
  'secretLevel',
  'materialCode',
  'materialName',
  'materialTypeName',
  'keyAttributes',
  'modelMark',
  'specification',
  'categoryLv1',
  'materialBroadHeadingName',
  'measurementUnitName',
];
// 按品类添加列
export const tableRenderKeysCategoryNameAdd = [];
// 按供应商添加列
export const tableRenderKeysBySupplierAdd = [
  'index',
  'secretLevel',
  'supplierCode',
  'creditCode',
  'supplierChinese',
  'supplierShortName',
  'alias',
  'unitNatureName',
  'isGroupName',
  'supplierQualifiedName',
  'companyRegisterLocation',
  'contactNumber',
];

export const tableRenderConfig = {
  secretLevel: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    width: 150,
  },
  materialCode: {
    title: '物料编码',
    dataIndex: 'materialCode',
    width: 150,
  },
  materialName: {
    title: '物料名称',
    dataIndex: 'materialName',
    width: 150,
  },
  materialTypeName: {
    title: '物料类型',
    dataIndex: 'materialTypeName',
    width: 150,
  },
  categoryLv1: {
    title: '一级品类',
    dataIndex: 'categoryLv1',
    width: 150,
  },
  categoryLv2: {
    title: '二级品类',
    dataIndex: 'categoryLv2',
    width: 150,
  },
  categoryLv3: {
    title: '三级品类',
    dataIndex: 'categoryLv3',
    width: 150,
  },
  materialStatusName: {
    title: '物料状态',
    dataIndex: 'materialStatusName',
    width: 150,
  },
  optional: {
    title: '操作',
    width: 150,
    slotName: 'optional',
    fixed: 'right',
  },
  // 按物料添加
  keyAttributes: {
    title: '物料关键属性',
    dataIndex: 'keyAttributes',
    width: 120,
    ellipsis: true,
    tooltip: true,
  },
  modelMark: {
    title: '牌号',
    dataIndex: 'modelMark',
    width: 120,
  },
  specification: {
    title: '规格',
    dataIndex: 'specification',
    width: 120,
  },
  // categoryLv1: {
  //   title: '技术条件(字段确认)',
  //   dataIndex: 'categoryLv1',
  //   width: 120,
  // },
  materialBroadHeadingName: {
    title: '物料大类',
    dataIndex: 'materialBroadHeadingName',
    width: 120,
  },
  measurementUnitName: {
    title: '计量单位',
    dataIndex: 'measurementUnitName',
    width: 120,
  },
  sourceTypeName: {
    title: '来源类型',
    dataIndex: 'sourceTypeName',
    width: 120,
  },
  // 按供应商添加
  supplierCode: {
    title: '供应商编码',
    dataIndex: 'supplierCode',
    width: 120,
  },
  creditCode: {
    title: '无证统一编码',
    dataIndex: 'creditCode',
    width: 120,
    ellipsis: true,
    tooltip: true,
  },
  supplierChinese: {
    title: '供应商名称',
    dataIndex: 'supplierChinese',
    width: 130,
    ellipsis: true,
    tooltip: true,
  },
  supplierShortName: {
    title: '简称',
    dataIndex: 'supplierShortName',
    width: 120,
    ellipsis: true,
    tooltip: true,
  },
  alias: {
    title: '英文名',
    dataIndex: 'alias',
    width: 120,
  },
  unitNatureName: {
    title: '供应商性质',
    dataIndex: 'unitNatureName',
    width: 120,
  },
  isGroupName: {
    title: '是否集团内',
    dataIndex: 'isGroupName',
    width: 120,
  },
  supplierQualifiedName: {
    title: '合格供应商',
    dataIndex: 'supplierQualifiedName',
    width: 120,
  },
  companyRegisterLocation: {
    title: '公司注册地址',
    dataIndex: 'companyRegisterLocation',
    width: 120,
    ellipsis: true,
    tooltip: true,
  },
  contactNumber: {
    title: '供应商电话',
    dataIndex: 'contactNumber',
    width: 120,
  },
};
